#include<iostream>

#include<string>

using namespace std;

class XCF

{

    int a;

public:

    XCF (int aa=0) : a(aa) { cout<<"1"; }

    XCF(XCF & x)

    {

      a=x.a;

      cout<<"2";

    }

    ~XCF( ) { cout<<a; }

    int Geta( ) { return a; }

};

void main( )

{

    XCF d1(5),d2(d1);

    XCF *pd=new XCF(8);

    cout<<pd->Geta( );

    delete pd;

}